package com.gem.day05;

public class EmployeeTest {
	public static void main(String[] args) {
		Employee e1 = new Employee("HRC001", "jack", 3000.0);
		Employee e2 = new Employee("HRC002", "rose", 4500.0);
		Employee e3 = new Employee("HRC003", "tom", 2500.0);
		Employee[] employees = { e1, e2, e3 };
		Employee manager = new Employee("B001", "BOSS", 10000.0, employees);

		Employee newEmp = new Employee("HRC004", "jerry", 5000.0);

		//创建业务类对象
		EmployeeService es = new EmployeeService();
		es.addEmp(manager, newEmp);
		es.printEmp(manager);
		es.countEmp(manager);

		/*Employee newEmp = new Employee("HRC004", "jerry", 5000.0);
		manager.addEmp(newEmp);
		System.out.println(manager);*/

	}
}
